package basic;

import java.io.IOException;
import java.nio.file.*;

/**
 * @author： pang-yun
 * @date： 2021-08-31 19:10
 * 功能目的 ：用于
 */

public class PathAndFile {
    public static void main(String[] args) throws IOException {
        Path path = Paths.get("G:\\MyProgran\\play\\Netty-demo\\src\\main\\resources\\to.txt");
        System.out.println(path);
        System.out.println(path.normalize());
        System.out.println(Files.exists(path));
        Path move = Files.move(path, Paths.get("G:\\MyProgran\\play\\Netty-demo\\src\\main\\to.txt"));
    }
}
